package cn.iune.backcenter.author.sysinfo;

import java.sql.SQLException;
import java.text.ParseException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface ISysInfoService extends IBizDataIface {

	SysInfo getByID(String fID);

	List<SysInfo> getAll();

	List<SysInfo> getRoots(String provider);

	List<SysInfo> getChilds(String fParent);

	void delete(String fID);

	SysInfo getByNo(String systemCode);


//	JSONObject queryTreeByOrgID(JSONObject data) throws Throwable;

	List<String> getRootIDs(String provider);

	List<String> getChildIDs(String fParent);

	//获取ids
	List<String> getIDsByParent(String fParent, String provider);

	//更新sortNo
	int updateSortNo(SysInfo fs, String sortNo);

	//排序
	int sortGroupInfo(String parentID, List<String> ids/*,List<Integer> versions*/);

	List<SysInfo> getChildren(String fParent);

	int updateNodeKind(SysInfo fs, String nodeKind);

	int updateParentID(SysInfo fs, String fParent);

	int updateILevel(String rowID, int nodeLevelParent);

	int updateNodeLevel(SysInfo fs, int nodeLevel);

	int rewriteFullInfoByFullID(String fID, String storageFullID, String nodeKind);

	int updateFullID(SysInfo fs, String storageFullID);

	int updateFullNoName(SysInfo fs, String storageFullNo, String storageFullName);

	int getChildCount(String fParent, String appId);

	String getSortNoByParent(String fParent, String appId);

	int move(String rowID, String oldParentID, String newParentID, String appId);

	List<SysInfo> getPagList(String appId);

	JSONObject save(JSONObject object) throws ParseException;

	JSONObject query(JSONObject data) throws SQLException;

	List<SysInfo> getAppList();

	List<SysInfo> getAppList(String appId);

	List<SysInfo> getPagList();

	JSONObject getAppListAddOrg(String appId, String orgID);

	JSONObject getTreeMenu(String appId, String orgID);

	JSONObject getTreeMenuData(String appId, String orgID);


}